#include <stdio.h>
#include <unistd.h>
#include "timer.h"

static void MyTimerCallBack(unsigned int Times, bool Parity)
{
	printf("it is %d times trigger, is parity %d\n",Times,Parity);
}
unsigned int CTimer::mTimes=0;
bool CTimer::mParity=false;
unsigned long CTimer::mPeriodMillisecond=0;
bool CTimer::mRunning = false;
int main()
{
	CTimer mytimer;
	mytimer.TimerCallBack = MyTimerCallBack;
	mytimer.StartTimer(512);
	sleep(10);
	mytimer.StopTimer();
	while(1)
	{
		sleep(1);
	}
	return 0;
}
